package FunctionalIntefaceDemo;

import java.util.function.Supplier;

public class SupplierDemo {

	public static void main(String[] args) {
//		String s = doSupplier(() -> {
//			return "吴彦祖";
//		});
//		System.out.println(s);
		
		String s = doSupplier(new Supplier<String>() {

			@Override
			public String get() {
				
				return null;
			}
			
		});

	}

	private static String doSupplier(Supplier<String> sup) {
		return sup.get();
	}

}
